package com.miukoo.aikao.ucenter.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miukoo.aikao.core.pojos.BaseModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
　* 用户考试成绩
　* @Author miukoo<miukoo@126.com>
　* @Date 2020/11/19 20:13
　* @Version 1.0
  */
@Setter
@Getter
@TableName("uc_user_achievement")
public class Achievement extends BaseModel<Achievement> {

    private static final long serialVersionUID = 1L;
    
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    
    /**
    * 用户ID
    */
    @TableField("user_id")
    private Long userId;

    /**
     * 考试ID
     */
    @TableField("exam_id")
    private Long examId;

    /**
     * 考试名称
     */
    @TableField("real_name")
    private String realName;

    /**
     * 考生姓名
     */
    @TableField("exam_title")
    private String examTitle;

    /**
    * 考试次数
    */
    @TableField("try_count")
    private Short tryCount;
    
    /**
    * 最高分数
    */
    @TableField("max_score")
    private Short maxScore;
    
    /**
    * 是否通过
    */
    private Boolean passed;
    
    /**
    * 创建时间
    */
    @TableField("create_time")
    private Date createTime;
    
    /**
    * 更新时间
    */
    @TableField("update_time")
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
